<?php
	include 'php/config.php';
	session_start();
	if (!isset($_SESSION["id_utente"])) {
		header("Location: " . $ISSUER_HOST . "/login.php");
		exit();
	}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="js/utils.js"></script>
<script src="js/change_password.js"></script>
<title>OpenBadges Cambio Password</title>
</head>
<body>
<h1>OpenBadges Cambio Password</h1>
<div id="message"></div>
<form method="post">
<table border="0">
	<tr>
		<td><label>Vecchia password</label></td>
		<td><input id="oldPassword" name="oldPassword" type="password" maxLength="70"/></td>
		<td id="oldPswMsg"></td>
	</tr>
	<tr>
		<td><label>Nuova password</label></td>
		<td><input id="newPassword1" name="newPassword1" type="password" maxLength="70"/></td>
		<td id="newPswMsg1"></td>
	</tr>
	<tr>
		<td><label>Conferma nuova<br>password</label></td>
		<td><input id="newPassword2" name="newPassword2" type="password" maxLength="70"/></td>
		<td id="newPswMsg2"></td>
	</tr>
</table>
<input id="change" type="button" value="Conferma" onclick="validateChangePswForm()" />
</form>
<div>
	<p>Torna alla <a href="index.html">Home</a></p>
</div>
</body>
</html>